<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function get_category_name($id) {
    
    switch($id) {
        case 0:
            return "Place";
        case 1:
            return "Opinions";
            break;
        case 2:
            return "Person";
            break;
        case 3:
            return "Animal";
            break;
        case 4:
            return "Organization";
            break;
        case 5:
            return "Place";
            break;
        case 6:
            return "Item";
            break;
        case 7:
            return "Media";
            break;
        case 8:
            return "Activity";
            break;
        case 9:
            return "Idea";
            break;
        default:
            return "Opinions";
            break;
    }
    
    $query = "SELECT name FROM interest_categories WHERE id = '$id'";
    $result = safe_select_query($query);
    return $result[0]->name;
}

?>
